<?php
/**
 * Created by PhpStorm.
 * User: aron
 * Date: 2019/5/6
 * Time: 10:27 AM
 */

$str = "1";
$int = 1;

echo "str == int  =>  " .($str == $int) . "<br>\r\n";
echo "str === int  =>  " .($str === $int) . "<br>\r\n";

if ($str === $int) {
    echo "str === int";
} else {
    echo "str !=== int";
}